/* Font loads here because the site editor drops <link> tags from the page */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  /* made-in-bd.com brand colours */
  --red: #d32f2f;
  --red-dark: #b71c1c;
  --yellow: #ffca28;
  --yellow-hover: #ffb300;
  --night: #15171c;
  --night-2: #1f2229;
  --ink: #212529;
  --ink-soft: #5b6475;
  --line: #e3e6ec;
  --page-bg: #f4f6f9;
  --display: "Space Grotesk", "Segoe UI", Tahoma, sans-serif;
  --radius: 18px;
  --max: 1140px;
}
/* Resets stay inside the portfolio so the site's header and footer are untouched */
.pf-page, .drawer, .preview { font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; color: var(--ink); line-height: 1.6; }
.pf-page *, .drawer *, .preview * { box-sizing: border-box; margin: 0; padding: 0; }
:where(.pf-page, .drawer, .preview) img { max-width: 100%; display: block; }
.pf-page a, .drawer a { color: inherit; text-decoration: none; }
.pf-page button, .drawer button { font: inherit; font-family: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: left; }
body.locked { overflow: hidden; }
.pf-page { max-width: calc(var(--max) + 24px); margin: 0 auto; padding: 40px 12px 80px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; }
em { font-style: normal; }

.pf-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 99px; font-weight: 600; font-size: 15px; transition: transform .2s, background .2s, border-color .2s; }
.pf-btn:hover { transform: translateY(-2px); }
.pf-page .pf-btn-yellow { background: var(--yellow); color: var(--night); }
.pf-page .pf-btn-yellow:hover { background: var(--yellow-hover); }
.pf-page .pf-btn-line { border: 1px solid rgba(255,255,255,.3); color: #fff; }
.pf-btn-line:hover { border-color: #fff; }
.pf-dl::before { content: "\2193"; font-size: 17px; line-height: 1; }

/* Hero: dark panel with a tilted screenshot stack */
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; background: var(--night); color: #fff; border-radius: var(--radius); padding: 64px 56px; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(110deg, #000 30%, transparent 85%); }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -120px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(211,47,47,.55), transparent 65%); }
.crumbs { font-size: 13.5px; color: rgba(255,255,255,.6); margin-bottom: 26px; }
.pf-page .crumbs a { color: #fff; }
.pf-page .crumbs a:hover { color: var(--yellow); }
.crumbs a::after { content: "/"; margin: 0 8px; color: rgba(255,255,255,.6); }
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.05; font-weight: 700; margin-bottom: 20px; }
.hero h1 em, .cta h2 em { color: var(--night); background: var(--yellow); padding: 0 .18em; border-radius: 8px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero p { color: rgba(255,255,255,.72); font-size: 17px; max-width: 480px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 40px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12); }
.hstat-num { display: block; font-family: var(--display); font-size: 30px; font-weight: 700; line-height: 1; }
.hstat-label { display: block; font-size: 13px; color: rgba(255,255,255,.55); margin-top: 6px; }
.hero-art { position: relative; height: 380px; }
.shot { position: absolute; width: 74%; border-radius: 12px; background: #fff; box-shadow: 0 30px 60px rgba(0,0,0,.45); border: 4px solid #fff; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.s1 { top: 0; right: 0; transform: rotate(6deg); }
.s2 { top: 90px; left: 0; transform: rotate(-5deg); z-index: 2; }
.s3 { bottom: 0; right: 6%; width: 52%; transform: rotate(3deg); z-index: 3; }
/* Until a picture is uploaded on the site, an image tag has no src: hide it instead of drawing an empty frame */
.pf-page img:not([src]), .pf-page img[src=""] { visibility: hidden; }
.hero:hover .s1 { transform: rotate(8deg) translate(10px, -8px); }
.hero:hover .s2 { transform: rotate(-7deg) translate(-8px, -4px); }
.hero:hover .s3 { transform: rotate(5deg) translate(6px, 8px); }

/* Ticker */
.ticker { overflow: hidden; background: var(--red); color: #fff; border-radius: 99px; margin: 18px 0 0; padding: 12px 0; }
.ticker-track { display: flex; width: max-content; animation: tick 40s linear infinite; }
.ticker .tk { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .02em; padding: 0 22px; display: flex; align-items: center; gap: 44px; }
.ticker .tk::after { content: "\2726"; color: var(--yellow); font-size: 12px; margin-right: -22px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* Project index */
.work { padding: 88px 0 40px; }
.work-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }
.work-head h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; font-weight: 700; }
.work-head p { color: var(--ink-soft); max-width: 300px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 99px; width: fit-content; margin-bottom: 28px; }
.tabs button { padding: 9px 18px; border-radius: 99px; font-size: 14px; font-weight: 500; color: var(--ink-soft); transition: background .2s, color .2s; }
.tabs button:hover { color: var(--ink); }
.tabs button.active { background: var(--night); color: #fff; }
.tabs .count { font-size: 10.5px; opacity: .6; margin-left: 4px; vertical-align: super; }

.index { list-style: none; border-top: 1px solid var(--ink); }
.project { border-bottom: 1px solid var(--line); }
.project.hide { display: none; }
.row-btn { width: 100%; display: grid; grid-template-columns: 56px minmax(0, 1fr) 180px 170px 40px; align-items: center; gap: 20px; padding: 26px 8px; position: relative; transition: padding .3s; }
.row-btn::before { content: ""; position: absolute; inset: 0; background: #fff; border-radius: 12px; opacity: 0; transition: opacity .3s; z-index: -1; }
.row-btn:hover, .row-btn:focus-visible { padding-left: 22px; padding-right: 22px; outline: 0; }
.row-btn:hover::before, .row-btn:focus-visible::before { opacity: 1; }
.num { font-family: var(--display); font-size: 14px; font-weight: 600; color: var(--red); }
.row-thumb { display: none; }
.row-title { display: block; font-family: var(--display); font-size: clamp(19px, 2vw, 24px); font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.row-sum { display: block; color: var(--ink-soft); font-size: 14.5px; margin-top: 4px; max-width: 520px; }
.row-cat { font-size: 13.5px; font-weight: 500; }
.row-tags { font-size: 13px; color: var(--ink-soft); }
/* Arrow drawn in CSS, since the site editor strips <svg> */
.row-btn::after { content: "\2197"; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); font-size: 17px; transition: all .3s; }
.row-btn:hover::after { background: var(--red); border-color: var(--red); color: #fff; transform: rotate(45deg); }

/* Floating hover preview (mouse only) */
.preview { position: fixed; left: 0; top: 0; width: 320px; pointer-events: none; z-index: 50; opacity: 0; transform: translate(-50%, -50%) scale(.85); transition: opacity .25s, transform .25s; }
.preview.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.preview img { width: 100%; border-radius: 12px; border: 4px solid #fff; box-shadow: 0 24px 50px rgba(21,23,28,.3); background: #fff; }

/* CTA */
.cta { margin-top: 50px; background: var(--night); color: #fff; border-radius: var(--radius); padding: 72px 40px; text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.cta::before { content: ""; position: absolute; width: 600px; height: 600px; left: 50%; bottom: -420px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(211,47,47,.6), transparent 65%); z-index: -1; }
.cta .eyebrow { color: var(--yellow); }
.cta h2 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.1; font-weight: 700; margin-bottom: 14px; }
.cta p { color: rgba(255,255,255,.7); margin-bottom: 28px; }
.cta .hero-actions { justify-content: center; }

/* Side drawer with project details */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(21,23,28,.55); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 90; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(560px, 100%); background: #fff; z-index: 100; overflow-y: auto; transform: translateX(100%); transition: transform .4s cubic-bezier(.2,.7,.2,1); visibility: hidden; }
.drawer.open { transform: none; visibility: visible; }
.drawer .drawer-close { position: sticky; top: 14px; margin: 14px 14px -54px auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--night); color: #fff; font-size: 24px; line-height: 1; z-index: 1; }
.drawer .drawer-close:hover { background: var(--red); }
.drawer-img { width: 100%; aspect-ratio: 716 / 473; object-fit: cover; background: var(--page-bg); }
.drawer-body { padding: 28px 32px 40px; }
.drawer-meta { font-size: 13px; color: var(--red); font-weight: 600; margin-bottom: 8px; }
.drawer h3 { font-size: 28px; line-height: 1.15; font-weight: 700; margin-bottom: 14px; }
.drawer-content p { color: var(--ink-soft); font-size: 15.5px; }
.drawer-content h4 { font-family: var(--display); font-size: 16px; margin: 26px 0 12px; }
.drawer-content ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.drawer-content li { font-size: 13.5px; padding: 6px 12px; border-radius: 99px; background: var(--page-bg); border: 1px solid var(--line); }
.drawer .links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.drawer .links a { padding: 10px 20px; border-radius: 99px; font-size: 14.5px; font-weight: 600; background: var(--night); color: #fff; transition: background .2s; }
.drawer .links a:hover { background: var(--red); }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  .shot, .drawer { transition: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding: 48px 32px; }
  .hero-art { height: 320px; max-width: 520px; width: 100%; margin: 0 auto; }
  .row-btn { grid-template-columns: 44px minmax(0, 1fr) 150px 40px; }
  .row-tags { display: none; }
}
@media (max-width: 640px) {
  .pf-page { padding: 16px 0 48px; }
  .hero { border-radius: 0; padding: 40px 16px; gap: 28px; }
  .hero-art { height: 240px; }
  .hero-stats { gap: 24px; }
  .ticker { border-radius: 0; }
  .work { padding: 64px 16px 24px; }
  .tabs { border-radius: 16px; width: auto; }
  .row-btn { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 18px 0; }
  .row-btn:hover, .row-btn:focus-visible { padding-left: 0; padding-right: 0; }
  .row-btn::before { display: none; }
  .num, .row-cat, .row-btn::after { display: none; }
  .row-thumb { display: block; width: 96px; aspect-ratio: 716 / 473; object-fit: cover; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
  .row-sum { font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .cta { border-radius: 0; padding: 56px 16px; }
  .drawer-body { padding: 24px 20px 32px; }
}
